<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
        content="width=device-width, initial-scale=1.0">
<meta name="HandheldFriendly" content="true">
<title>Sample</title>
<style>
body {
	font-family: 微软雅黑, 'Microsoft YaHei', \5FAE\8F6F\96C5\9ED1, sans-serif;
}
</style>
</head>
<body>
<script type="text/javascript">
  var oStorage;
  try{
    // 获取存储区域
    oStorage = window.localStorage ? window.localStorage : window.globalStorage[strDomain];
    // 遍历所有键，根据键删除所有键值对
	for(var i=0;i<oStorage.length;i++){
	   var strKey = oStorage.key(i);
	   oStorage.removeItem(strKey);
	}
  }catch(err){
    alert(err.message?err.message:err.toString());
  }
</script>
</body>
</html>
